Given a matrix of 1s and 0s, count the groups of 1s.