Is there a simple way of getting the number of posts in the database?
At the moment I'm trying to use:
$count = $wpdb->get_results('SELECT COUNT(*) FROM wp_posts');
This isn't working, because
$count stays empty.
It must return a number, because I'm using this later on:
$remainder = $count - 10;