Function to get group count added