fixed variable name

this variable name is used elsewhere for global count.