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

Closes #3883
First hit on versioned analyzers

tests needed... and everything else