title: Getting the count of the total View objects on all Post objects for a User object
body: <p>My application has View objects attached to Post objects (many to one). A User object hasMany Posts. How do I retrieve essentially <code>$totalViews = $user-&gt;posts()-&gt;views()-&gt;count();</code>? </p>
  
  <p>That syntax obviously doesn't work. I could loop through each $user->posts and add up the views, but that seems really slow and there's probably a better way.</p>