```ruby
class HomeController < ApplicationController
  def index
    @count = Rubygem.total_count
    @latest = Rubygem.latest
    @downloaded = Rubygem.downloaded
    @updated = Version.updated
  end
end
```

Use Version.latest.count instead of total_count since AR hates DISTINCT
user
```ruby
class HomeController < ApplicationController
  def index
    @count = Version.latest.count
    @latest = Rubygem.latest
    @downloaded = Rubygem.downloaded
    @updated = Version.updated
  end
end
```
assistant