code: func (fs *FlagSet) FlagCountUndeprecated() int {
  	count := 0
  	for _, flag := range sortFlags(fs.formal) {
  		for _, name := range flag.Names {
  			if name[0] != '#' {
  				count++
  				break
  			}
  		}
  	}
  	return count
  }
docs: // FlagCountUndeprecated returns the number of undeprecated flags that have been defined.