Returns the number of berval structures in the array.
#include <ldap.h>
int ldap_count_values_len (
struct berval **vals);
(IN) Points to the array of values returned by the ldap_get_values or ldap_get_values_len function.
The ldap_count_values_len function can be used to count the number of values for attributes that have binary data. Use ldap_count_values to count string attribute values.
The memory for the vals parameter is dynamically allocated. When you are done with the array, free the memory by calling the ldap_value_free_len function.