Added count method to indexes. Issue #31