The second census; Joshua to succeed Moses; Regulations about vows; War with Midian; Instructions for occupation