How to find the number of records you have?

How to find the number of records you have?

The api methon getRecords only supports the maximum of 200 records to be fetched in one call, but how can I find out how many records I have in all?

Seems a bit excessive to iterate through a list of getRecords in oder to find out