Returns the total number of groups.
Use this function to determine the total number of groups in the task pane.