Acts 4:1 (KJV)
And as they spake unto the people, the priests, and the captain of the temple, and the Sadducees, came upon them, 2 Being grieved that they taught the people, and preached through Jesus the resurrection from the dead.
Acts 5:24 (KJV)
24 Now when the high priest and the captain of the temple and the chief priests heard these things, they doubted of them whereunto this would grow.
Who is this captain mentioned in tandem with the priests & what exactly was his role in the temple?