Thank you for your order!
Invalid order
function wpb_total_posts() { $total = wp_count_posts()->publish; return $total; } add_shortcode('total_posts','wpb_total_posts');