#include <fontconfig/fontconfig.h>
int FcCacheNumFont(const FcCache *cache);
int FcCacheNumFont
This returns the number of fonts which would be included in the return from FcCacheCopySet.
Fontconfig version 2.11.0