Use resultSet array length for total match count rather than using the length of Marked Text.
Add unit test.
Verify the match count with the displayed string.
Merge pull request #8728 from adobe/rlim/total-match-count

Use resultSet array length for total match count