code: func countMatchingPods(namespace string, selectors []labels.Selector, nodeInfo *schedulernodeinfo.NodeInfo) int {
  	if nodeInfo.Pods() == nil || len(nodeInfo.Pods()) == 0 || len(selectors) == 0 {
  		return 0
  	}
  	count := 0
  	for _, pod := range nodeInfo.Pods() {
  		// Ignore pods being deleted for spreading purposes
  		// Similar to how it is done for SelectorSpreadPriority
  		if namespace == pod.Namespace && pod.DeletionTimestamp == nil {
  			matches := true
  			for _, selector := range selectors {
  				if !selector.Matches(labels.Set(pod.Labels)) {
  					matches = false
  					break
  				}
  			}
  			if matches {
  				count++
  			}
  		}
  	}
  	return count
  }
docs: // countMatchingPods cout pods based on namespace and matching all selectors