added session method to get number of groups (maxgroup+1)