title: Wordpress - Total User Count who only have posts
body: <p>I want to display total number of user who only have posts at Wordpress. I can get all users by this query</p>
  
  <pre><code>&lt;?php $user_count = $wpdb-&gt;get_var("SELECT COUNT(*) FROM $wpdb-&gt;users;"); echo $user_count ?&gt;
  </code></pre>
  
  <p>But for the user count only with posts, i think i might need to join another table, does anyone have snippets ? Thanks.</p>