Code cleaned up. Another view of the number of windows in the group