Fix entity `number_of_clauses/1` broken by previous commit