basic parse and count groups