code: public static <K> Integer getCount(Map<K, Integer> map, K k)
      {
          Integer count = map.get(k);
          if (count == null)
          {
              count = 0;
              map.put(k, count);
          }
          return count;
      }
docs: Returns the value that is stored for the given key in the given map.
  If there is no value stored, then 0 will be inserted into the map
  and returned
  
  @param <K> The key type
  @param map The map
  @param k The key
  @return The value