fixed counting typo