added a count of the number of solutions