Use gevent to count individual indexes asynchronously