txt_count: Count the number of times a pattern is occurring in text
Description
Count the number of times a pattern is occurring in text.
Pattern counting is performed by executing a regular expression using gregexpr and
checking how many times the regular expression occurs.