added a method called getShardCount()