Fix Rails 4.1 count in active_record.rb

mislav#372 commit using will_paginate latest version 3.0.5