Verify with test that Elastica\Index::count($query) works as expected