I would do a SQL Command object and have two sql statements. The first tracking the count of individuals and the second counting groups. Then link them together. Something like this:
SELECT ID, Name, Count(*)
From yourtable
WHERE Type='Individual'
Group BY ID, Name
SELECT ID, Name, Count(*)
From yourtable
WHERE Type='Group'
Group BY ID, Name