Add support for counting syntactic matches in a macro definition