Count by index