ben7th/vote — comment on commit 492ed50d97b340ded30239f9a2b3c7605e1e8c42
File: app/models/vote_item.rb line 8
By ben7th:

```ruby
def selected_count
return VoteResultItem.where(:vote_item_id => self.id).count
end

def selected_by_vote(vote_id)
return VoteResultItem.where(:vote_id => vote_id).count
end
```