Declaration and Definition of variable neededClaps with calculation