Returns the count of schema elements of the type specified.
#include <ldap.h>
int ldap_schema_get_count (
LDAPSchema *schema,
int elementType);
(IN) A handle to the schema of an LDAP directory.
(IN) Type of element requested. Use the definitions listed in Section 6.11, Schema Element Types.
Return value is -1 if the LDAPSchema structure is invalid or the elementType is invalid. Otherwise the return value is the count of schema elements.
Ldap_schema_get_count is used to get valid values for the index parameter of ldap_schema_get_by_index.