you are not running the code you posted, as it will not compile.
line 67 should be count.
its possible if you don't read your warnings and errors to miss that a compiler did not succeed, and is running the previous version which is probably messed up.