public void add(String key)
    {
        assert key != null;
        for (int bucketIndex : getHashBuckets(key)) {
            Bucket bucket = new Bucket(bucketIndex);
            if(bucket.value < MAX_COUNT) {
                bucket.set(bucket.value + 1);
            }
        }
    }