Calculates the number of satisfying variable assignments.
Calculates how many possible variable assignments there exists such that r is satisfied (true).