Show how many items matched the query

Hey Tristan,

In order to get the number of items, not the items themselves, you need to use items.length, for example:

let numberOfItems = results.items.length; 
$w('#text96').text === numberOfItems + 'Commentaires';

Good Luck,
Itai

Edit
Even simpler, the result object contains a totalCount property which you can use.
So just use let numberOfItems = results.totalCount;
It’s cleaner.
See https://www.wix.com/code/reference/wix-data.WixDataQueryResult.html#totalCount