.order("posts_count") とか

includes(:posts)せずに
- @users.each do |user|
 = user.posts_count
とか