removes count from global scope