You need to be clearer of the terms you are using. What's "Category", what's "Articles"?
In your example:
List<Map<Integer, Object>> l = new ArrayList<Map<Integer, Object>>();
Map<Integer, Object> m = new HashMap<Integer, Object>();
m.put(123, null);
what's the point of the Map's value if you are just passing in NULL ?
1 easiest way if you really just want to have a count of reference to each category:
Map<Category, Integer> categoryCount = ...
or you can use a primary key from Category to keep count as well:
Map<Integer, Integer> categoryCount = ... // the Map key is Category.getId()
or if you want to know which Article reference that category:
Map<Category, List<Article>> categoryArticleRef = ...
would work too, then to know how many articles you can always just do:
categoryArticleRef.get(category).size(); // need NPE check, etc