Tunnel excavation produces [[rock shards]] on every action.
Using this, you can check how many mining actions you have left before you break the wall. Open the [[pile of rock shards]] at your feet and see how many are inside. Since every mining action here produces a [[rock shardshards]], the number in the pile will tell you close you are to your goal of 45+.
=== Ore mining ===