Added `num_queries` and `memory_size` stats to percolate stats.

Closes #3883