small refactoring collection.py
count() over gen.coroutine