Added solution for count semiprimes