Refactor uses of FileMatchLimit which corresponds to count
Created by: rvantonder
After processing a query, we persist the value of count: in FileMatchLimit, and use it in other kinds of searches like commit. We should refactor the internal data types to reflect these values.
Example https://github.com/sourcegraph/sourcegraph/pull/15619/files#r521127896