"I counted all of the yurts in Mongolia using machine learning"
It's not wrong, but possibly ambiguous, and I'd bet an English teacher would prefer it was phrased differently. In speech, I wouldn't bat an eye at that arrangement. But, if I were to write the headline, it would have been...
"I used machine learning to count all the yurts in Mongolia."