Implement TrainingPath.count