David made Solomon king in his place, and he had counted the Levites that were at least thirty years old.