Renamed variables

Renamed variables N and SQUARE to counter and square respectively to fit naming guidelines