You should have a
function updateCurrentCarouselCount(){
}
in your script.
And no need for this
,
buttonNextCallback: updateCurrentCarouselCount,
buttonPrevCallback: updateCurrentCarouselCount,
setupCallback: updateCurrentCarouselCount
will do the job for you.