Who wrote nearly half of the books of the New Testament?

A. Jesus
B. King James
C. Matthew
D. Paul

Please provide an explanation of how you got your answer. Thank you.