code: public void compress ()
      {
          for (Iterator<int[]> itr = values().iterator(); itr.hasNext(); ) {
              if (itr.next()[0] == 0) {
                  itr.remove();
              }
          }
      }
docs: Compress the count map- remove entries for which the value is 0.