Modify quick count in discover to use sampleSize config

In discover, when you click on a field (on the left), you get a sample table, and the number of results is hard-coded to 500. This change makes it so this number isn't hard-coded, but corresponds with the `discover:sampleSize` advanced setting.

Closes #2077.