uint32_t bson_count_keys (const bson_t *bson);
bson: A bson_t.
bson
The bson_count_keys() function shall count the number of elements within bson.
A positive integer or zero.