If you are trying to get this in one line, instead of a vertical list, here’s a simple example, note the <div class=”my-totals> added to the PHP.
In “header.php”, probably after </header> tag, but you’ll to have experiment with placement.
<div class="my-totals">
<?php
global $wpdb;
$user_count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->users" );
echo "<p>User count is {$user_count}</p>";
?>
</div>
<div class="my-totals">
<?php
$args = array( 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1 );
$products = new WP_Query( $args );
echo $products->found_posts . 'total';
?>
</div>
then, at the very bottom of your theme’s style.css,
.my-totals
{
float:left;
margin-right:20px;
}
“my-totals” is your rule, while “float:left;” and “margin-right:20px;” are the properties added to the rule. You’ll want to learn how to add more, especially an image property.