#What were Moses and Aaron to conduct?

Moses and Aaron were to conduct a census of the male descendants of Kohath from among the Levites who were 30 to 50 years old. [4:1-3]

When Moses counted each man and kept count of each man's type of work and responsibility, who did he obey?

When Moses counted each man and kept count of each man's type of work and responsibility, he obeyed Yahweh.