Which words in the sentence make up the infinitive?

To sleep, he counted sheep up to one hundred.









A.
to one hundred







B.
up to







C.
to sleep







D.
he counted