Adding count feature.