Did you know ... Search Documentation:
Predicate count/2
 count(:Goal, -Count)[private]
Count number of times Goal succeeds.