def count(s, limit=<NUM_LIT:20>):
return _gen(parse(s), limit, count=True)<EOL>
Counts all matching strings to a given regular expression

    :param s: Regular expression
    :type s: str
    :param limit: Range limit
    :type limit: int
    :rtype: int
    :returns: number of matching strings