Counting search results from a query loop

Hi! I’m hoping someone can help me.
I’ve made a template for search results, and want to display the number of results in a heading above the loop results. I can’t seem to work out how to do this.

I’ve tried the instructions from this vide (Bricks Builder for Wordpress: Display Posts Count Number in Term Query Loop - YouTube) but it doesn’t seem to be working.

Any help gratefully received!! Thanjs.

I do not know how to use php, but you can use js

document.getElementsByClassName("bricks-layout-item repeater-item").length

Can you try this one in a code element

<?php
global $wp_query;
echo $wp_query->found_posts.' results found.';
?>
1 Like

This works perfectly!
Thank you very much.