You should count all your aerobic base miles done on foot. If you are training with a mountaineering goal in mind this will add to a great base. If you are training to run a fast marathon this stuff will make you tired but won’t contribute much to your marathon success.
I’d use the +10TSS/1000ft of gain and loss fudge factor for these hikes with lots if vertical in them.
Scott