This puzzle is called the Tower of Hanoi.
You are tasked with finding the minimum number of moves to complete the puzzle.
This certainly sounds like a counting problem.
Perhaps you have an answer?
If not, what else could we try?
Discrete Mathematics: An Open Introduction, 3rd edition, by Oscar Levin (discrete.openmathbooks.org), licensed under CC BY-SA 4.0; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.