optimizing deep pagination
fixed bug with count(search()/path)
another stab at fixing count(search(...))
finally fixed the count(search()/path) overoptimization - all tests pass