How to Count in REST API in v4?

System Information
  • Strapi Version: 4.0.5
  • Database: Postgres

Hi All,
I’ve manually migrated my content into v4 and am now working through updating my queries with the new API structure.
v3 had a /count route that would return the total number of entries.
I can’t seem to find this in v4. I used this for a stat counter that was visible on the front end.

Can someone please confirm if that is correct, where the new location might be or what I’d need to adjust to re-add ?

1 Like