Fixed typo
Renamed count to counter. count is reserved in sqlquery which could be confusing