public function get_orders_count( $status = null, $filter = array() ) {

        try {
            if ( ! current_user_can( 'read_private_shop_orders' ) ) {
                throw new WC_API_Exception( 'woocommerce_api_user_cannot_read_orders_count', __( 'You do not have permission to read the orders count', 'woocommerce' ), 401 );