msgs = {'C1002': ('Too many public methods (%s/%s)',
    'Used when class has too many public methods, try to reduce                this to get a more simple (and so easier to use) class.'
    )}

def leave_class(self, node):
    """check number of public methods"""
nb_public_methods = 0
print(type(node))
for method in node.methods():
    if not method.name.startswith('_') and method.parent == node:
        nb_public_methods += 1
if nb_public_methods > MAX_NUMBER_PUBLIC_METHODS:
    self.add_message('C1002', node=node, args=(nb_public_methods,
        MAX_NUMBER_PUBLIC_METHODS))
Pylint: can inherited public methods be exclude from statistics?