# Hightop Super convenient group count ```ruby Visit.top(:browser) ``` instead of ```ruby Visit.group(:browser).where("browser IS NOT NULL").order("count_all DESC, browser").count ``` Limit the results ```ruby Visit.top(:referring_domain, 10) ``` Be sure to [sanitize user input](http://rails-sqli.org/) like you must with `group`. ## Installation Add this line to your application’s Gemfile: ```ruby gem 'hightop' ``` And then execute: ```sh bundle ``` ## Contributing Everyone is encouraged to help improve this project. Here are a few ways you can help: - [Report bugs](https://github.com/ankane/hightop/issues) - Fix bugs and [submit pull requests](https://github.com/ankane/hightop/pulls) - Write, clarify, or fix documentation - Suggest or add new features