The first and last guard will take 3 + 2 = <<3+2=5>>5 hours of the night shift.
There are 9 hours in the night shift, so the middle two guards will cover 9 - 5 = <<9-5=4>>4 hours.
Each middle guard will take 4 / 2 = <<4/2=2>>2 hours.
#### 2