Include full count in search results.

Search results now include a count of how many characters actually matched, in
addition to the data for the first 500 matching characters. This number is
displayed on the UI if the matching count is > 500.