Adding a function to count the number of factors
Importing solution for p11