code: func (path *Path) GetAsPathLen() int {
  
  	var length int = 0
  	if aspath := path.GetAsPath(); aspath != nil {
  		for _, as := range aspath.Value {
  			length += as.ASLen()
  		}
  	}
  	return length
  }
docs: // GetAsPathLen returns the number of AS_PATH