public function get_customers_count( $filter = array() ) {
        try {
            if ( ! current_user_can( 'list_users' ) ) {
                throw new WC_API_Exception( 'woocommerce_api_user_cannot_read_customers_count', __( 'You do not have permission to read the customers count', 'woocommerce' ), 401 );
            }