---
layout: doc
title: contrib / num_classes.pre
---
# num_classes

### NAME

    num_classes - returns the number of classes used by object

### SYNOPSIS

    int num_classes(object);

### DESCRIPTION

    returns the number of classes used by object

### SEE ALSO

    classes(3)
