counting grid class v1.3 - Counting Grid class debugged