factorization keeping count of each prime factor