Fix serious performance problem with count()
Fix serious performance problem with count()

We forgot to do an early return for value fetch when count() is used.
It would instead load the whole document.

pipedown/noise,pipedown/noise