I am a developer i want to know the count of leads returned in my response, however i can't find anything about that in the documentation. can someone help me
No, this is not possible. The rest API does not return a count, only the list of leads (with a max of 300) and a token if your request returns more than 300 (or whatever the batch size is).
Would be worth an idea though.
Retrieving data ...