add countChange implementation