Improved performance with counter_cache for tags (tag.taggings_count), taken from https://github.com/lichtamberg/acts-as-taggable-on/commit/52836c54d9abf1cc77be4df7b4c61cea90869c50