King David entrusted Joab to "number Israel and Juda" (2 Sam. 24:1), then (v. 10):
David's heart struck him, after the people were numbered: and David said to the Lord: I have sinned very much in what I have done: but I pray thee, O Lord, to take away the iniquity of thy servant, because I have done exceeding foolishly.
H. McKay, O.F.M., 1 and 2 Kings (1 and 2 Samuel), in A Catholic Commentary on Holy Scripture (Orchard et al. eds.), says (§ c 24:1–25):
we are not told why this normal act of administration was sinful. David may have intended merely compiling a register for the organization of military service, fresh taxation, and forced labour for his building schemes. However it was a common belief amongst ancient Semitic peoples that whoever knew the name of a person, the number of his possessions, herds, and household acquired a mysterious power over them; cf. RB [Revue Biblique] 53 (1946) 178. Hence David’s action implied that he had absolute rights over his people, whereas he was merely Yahweh’s representative in a strictly theocratic state.
Is this the only explanation as to why King David thought he sinned by doing a census? Do the Fathers or Doctors of the Church give other explanations?