(b)The barracks shall be visited once in every half an hour throughout the night by a patrolling officer who should examine the locks, gratings and doors and satisfy himself that they are secure and that the night watchman on duty inside is alert. He should frequently challenge him with this object and enquire the number of prisoners and if all are present.