revise count_vote function to apply to other controllers
display views count and votes count on resource show page