public function getTotalPosts()
    {
        global $wpdb;
        return $wpdb->get_var(
            $wpdb->prepare('SELECT COUNT(*)
				FROM ' . $wpdb->prefix . 'posts
				WHERE post_author = %d
				AND post_type = %s
				AND post_status = %s', $this->ID, Post::TYPE_POST, Post::STATUS_PUBLISH));
    }