Refactored countClumps DURING CLASS