added function to count number of prime checking children