How to show "No Search Results" when no results were found in filter?

I would like to present the user with a “No Search Results” text if there are no results after a search of a dataset. Here is my current code for filtering the data:

export function searchBox_keyPress(event) {
 if (event.key === 'Enter') {
        filter($w('#searchBox').value)
    }
}

function filter(title) {
    $w('#dataset1').setFilter(wixData.filter().contains('title', title));
}

The returned filtered data displays in the Table. How can show “No Search Results” when no data is found in the filter?

https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#getTotalCount

If zero, show your Message.

That worked well. Thank you!