Would be nice to be able to gather a count of items in a SharePoint list with a certain status, or category, etc. Or be able to use the count related to send information.
There is already a method to do this. In the print below i use a GetItens with filters and a Compose after this. in the Compose you should use this text : "@length(body('PegarAprovacoesPendentes')?['value'])" where the text in red is the name of your GetItens action.
I hope I have helped, if you need more can call me.
Getitems will work, but you'll hit the SharePoint item limit and return a lot of unwanted data. Since this call only returns a number, it has a quick response.