cleaned up animation counter