There are three main requirements for that badge:
An easy way to track the number of activities of a certain type is to create a goal: https://connect.garmin.com/modern/goals
Note that the goals will also count manually created activities which doesn't count for the badge.