code: func filterPods(pods []*v1.Pod, phase v1.PodPhase) int {
  	result := 0
  	for i := range pods {
  		if phase == pods[i].Status.Phase {
  			result++
  		}
  	}
  	return result
  }
docs: // filterPods returns pods based on their phase.