int libmem_get_number_of_regions(const libmem_geometry_t *geometry);

**libmem_get_number_of_regions** is a helper function that returns the number of geometry regions described by a geometry description.

**geometry** —
A pointer to the NULL terminated geometry description.

**libmem_get_number_of_regions** returns —
The number of geometry regions.