code: func CountValues(b []byte) (int, error) {
  	i := 0
  	for ; len(b) > 0; i++ {
  		_, tagsize, size, err := readKind(b)
  		if err != nil {
  			return 0, err
  		}
  		b = b[tagsize+size:]
  	}
  	return i, nil
  }
docs: // CountValues counts the number of encoded values in b.