added countChange function
added countChange function