Who tried to stop King David from taking a census?

Answer :

Answer: Joab

Explanation:

Like Nebuchadnezzar, he wanted to boast about the nation he had built. Joab felt that his intent was completely wrong and tried to stop David from doing it.