code: public void add(T style)
      {
          Integer cnt = styles.get(style);
          if (cnt == null)
              styles.put(style, 1);
          else
              styles.put(style, cnt+1);
      }
docs: Adds a new occurence to the counter.
  @param style The style to be added.