5
These were his children who were born in Jerusalem: Shammua, Shobab, Nathan, and Solomon -- the four children of David and Bathsheba, Ammiel's daughter.
8
David's other nine children were Ibhar, Elishua, Eliphelet, Nogah, Nepheg, Japhia, Elishama, Eliada, and Eliphelet.
9
These were all of David's sons, except for those born to his slave women. David also had a daughter named Tamar.