Fix typo tempcont --> tempcount