try to count all solutions