func (rs *RangeScanner) Count() (count int, err error) {
	err = rs.db.View(func(tx *bolt.Tx) error {
		c := tx.Bucket(rs.BucketName).Cursor()
		for k, _ := c.Seek(rs.Min); isBefore(k, rs.Max); k, _ = c.Next() {
			count++
		}
		return nil
	})
	if err != nil {
		return count, err
	}
	return count, err
}
// Count returns a count of the keys within the range.
Count returns a count of the keys within the range.
// Count returns a count of the keys within the range .
func (rs *RangeScanner) Count() (count int, err error) {
	err = rs.db.View(func(tx *bolt.Tx) error {
		c := tx.Bucket(rs.BucketName).Cursor()
		for k, _ := c.Seek(rs.Min); isBefore(k, rs.Max); k, _ = c.Next() {
			count++
		}
		return nil
	})
	if err != nil {
		return count, err
	}
	return count, err
}
func ( rs * RangeScanner ) Count ( ) ( count int , err error ) { err = rs . db . View ( func ( tx * bolt . Tx ) error { c := tx . Bucket ( rs . BucketName ) . Cursor ( ) for k , _ := c . Seek ( rs . Min ) ; isBefore ( k , rs . Max ) ; k , _ = c . Next ( ) { count ++ } return nil } ) if err != nil { return count , err } return count , err }
Count returns a count of the keys within the range.
Count returns a count of the keys within the range .