'Returns the count of matches to ``pattern`` in ``list``.
For more information on ``pattern``, ``case_insensitive``, and
``whitespace_insensitive``, see `Should Contain Match`.
Examples:
| ${count}= | Get Match Count | ${list} | a* | # ${count} will be the count of strings beginning with \'a\' |
| ${count}= | Get Match Count | ${list} | regexp=a.* | # ${matches} will be the count of strings beginning with \'a\' (regexp version) |
| ${count}= | Get Match Count | ${list} | a* | case_insensitive=${True} | # ${matches} will be the count of strings beginning with \'a\' or \'A\' |
New in Robot Framework 2.8.6.'

def get_match_count(self, list, pattern, case_insensitive=False, whitespace_insensitive=False):

    return len(self.get_matches(list, pattern, case_insensitive, whitespace_insensitive))
