[FIX] Fixed indices document counts when using elasticsearch 0.90.0

Closes #5