Adding a variable for counting the number of clauses