Changed forEach to count

Possible fix for it not being permanent since it was changed in 1.0.5 to account for 1.63