Levi's three sons, Gershon, Kohath, and Merari, had become the heads of their own clans.
So Moses obeyed and counted them.
David then divided the Levites into three groups according to the clans of Levi's sons, Gershon, Kohath, and Merari.