add: parenthesis to regexp
add: countOccurrences, countOccurrencesN and related tests