Show how many items matched the query

Hey, thanks !

I’m a real rookie in coding, I tried this in the onReady function (or should i put it in the dataset on ready ?)

let itemObj = $w("#dataset2").getCurrentItem();
    wixData.query("commentaires")
  .contains("reference", $w('#input2').value)
  .find()
  .then( (results) => {
  	let items = results.items;
  	$w('#text96').text === items + 'Commentaires';
   } ) 

and it’s not working