category_count = new Hash(); handle_article(path, category, article_body) { ... # lots of stuff ... # count number of articles in each category category_count[category]++ }
What, you mean that's all?