How is the underlined pronoun used in the sentence?

A jolly band of pirates are we.


A.
object of a preposition

B.
subject

C.
subject complement

D.
direct object