How to get total number of posts in range

I rewrote it using the examples in this thread in the end and without the “first 5” as it was serving no purpose: Range length or last element?

Thanks anyway :slight_smile: