diff --git a/compress/compress.go b/compress/compress.go index 95e01c403..99222b82a 100644 --- a/compress/compress.go +++ b/compress/compress.go @@ -128,6 +128,8 @@ func (c *Compressor) SetTrace(trace bool) { c.trace = trace } +func (c *Compressor) Count() int { return int(c.wordsCount) } + func (c *Compressor) AddWord(word []byte) error { c.wordsCount++