Close your eyes and count to 10.

Literal

Eyes [obj-を] close, 10 [until-まで] count [imperative-なさい].

Te-form 閉じて chains with 数えなさい — two sequential commands. ~まで marks the endpoint of counting. A common instruction in children's games like hide-and-seek.