WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

OrdersProvider::get_order_count() public WC 1.0

Returns the number of orders.

{} It's a method of the class: OrdersProvider{}

No Hooks.

Return

Int. The number of orders.

Usage

$OrdersProvider = new OrdersProvider();
$OrdersProvider->get_order_count();

Code of OrdersProvider::get_order_count() WC 5.3.0

<?php
public function get_order_count() {
	$status_counts = array_map( 'wc_orders_count', $this->allowed_statuses );
	$orders_count  = array_sum( $status_counts );

	return $orders_count;
}