Changed my code so it doesn't scale back the tempCount anymore