Then David numbered the people who were with him and set over them commanders of thousands and commanders of hundreds.