What is the function of the noun clause in this sentence?

I learned why there are fewer hours of daylight in the winter.

A. appositive

B. indirect object

C. direct object

D. subject