reflect.rtype.NumField (method)

one use

	reflect (current package)
		type.go#L974: func (t *rtype) NumField() int {