Added group count output