Here is an easy way of doing this:
import mlflow
id = 123456789 # replace with own run id
# get all runs as a pandas dataframe
runs = mlflow.search_runs(experiment_ids=[id])
# Number of runs is the number of rows in the dataframe
print(f'Experiment ID: {id} has {runs.shape[0]} runs')