Add countForFetchRequest sync and async methods and tests
Finish tests and add docs.
Merge branch 'f/count-for-fetch' into development