What kind of sentence is this?
How many articles did Eli write before his publisher offered him a book contract?

 - interrogative
 - imperative
 - declarative
The sentence asks something, and it ends with a question mark. It is an interrogative sentence.