Hi Ahammed,
You should be able to. There is a TestCase endpoint that you can query and if you provide a project reference you should be able to simply poll the result count with something like this:
int count = testCaseQueryResponse.getResults().size()