That's how the GB explain it:
*** it-2 p. 765 Registration ***David’s Calamitous Registration. A registration taken toward the end of King David’s reign is also recorded, one that brought calamity. The account at 2 Samuel 24:1 reads: “And again the anger of Jehovah came to be hot against Israel, when one incited David against them, saying: ‘Go, take a count of Israel and Judah.’” The “one” who did the inciting is not there identified. Was it some human counselor? Was it Satan? Or even God? First Chronicles 21:1 helps to answer the question, saying: “Satan proceeded to stand up against Israel and to incite David to number Israel.” That rendering in the New World Translation agrees with the Hebrew text and with translations into Greek, Syriac, and Latin. It is also consistent with the renderings in other translations.—AT, NE, RS, JB, Mo.However, as the footnote at 1 Chronicles 21:1 points out, the Hebrew word sa·tanʹ can also be rendered “a resister.” Byington translates it “a Satan”; Young’s translation reads, “an adversary.” So it is possible that the “one” moving David to decide on the calamitous course was a bad human counselor.Interestingly, a footnote at 2 Samuel 24:1 shows that this text could be rendered: “And again the anger of Jehovah came to be hot against Israel, when he incited David against them.” The translation in The Bible in Basic English reads: “Again the wrath of the Lord was burning against Israel, and moving David against them, he said, Go, take the number of Israel and Judah.” Hence, some commentators consider that the “one” or “he” who incited David to take the census was Jehovah. His ‘anger against Israel,’ according to this view, predated the census and was due to their recent rebellions against Jehovah and his appointed king, David, when they followed first ambitious Absalom and then the good-for-nothing Sheba, the son of Bichri, in opposition to David. (2Sa 15:10-12; 20:1, 2) Such a viewpoint could be harmonized with the view that Satan or some bad human counselor incited David if the incitement is viewed as something that Jehovah purposely allowed, as by removing his protection or restraining hand.—Compare 1Ki 22:21-23; 1Sa 16:14; see FOREKNOWLEDGE, FOREORDINATION (Concerning individuals).On David’s part, there may have been wrong motive due to pride and trust in the numbers of his army, hence a failing to manifest full reliance on Jehovah. In any case, it is clear that on this occasion David’s chief concern was not that of glorifying God.