code: public int getCount(T style)
      {
          Integer cnt = styles.get(style);
          return cnt == null ? 0 : cnt;
      }
docs: Obtains total registered number of occurences of the given style.
  @param style the style whose number of occurences should be returned
  @return