Added countClumps function with passing tests