New class for counting specific methods in math