libzzub 0.2
int zzub_plugin_get_pattern_count ( zzub_plugin_t plugin)

Returns how many patterns are associated with the plugin.