@c Count the joker characters in a pattern
This function counts the number of jokers in the string and returns it.
This function should be used to calculate the safe length of the pszBuffer
given as a parameter to match.
int match_count(char *pszPattern,
unsigned long cbPattern
){