WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

DataStore::get_notes_count() public WC 1.0

Return a count of notes.

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

No Hooks.

Return

Array. An array of objects containing a note id.

Usage

$DataStore = new DataStore();
$DataStore->get_notes_count( $type, $status );
$type(string)
Comma separated list of note types.
$status(string)
Comma separated list of statuses.

Code of DataStore::get_notes_count() WC 5.3.0

<?php
public function get_notes_count( $type = array(), $status = array() ) {
	global $wpdb;

	$where_clauses = $this->get_notes_where_clauses(
		array(
			'type'   => $type,
			'status' => $status,
		)
	);

	if ( ! empty( $where_clauses ) ) {
		// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared
		return $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}wc_admin_notes WHERE 1=1{$where_clauses}" );
	}

	return $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}wc_admin_notes" );
}