Added class CntPrime to count prime numbers