How to use COQL in Zoho CRM's Client script

How to use COQL in Zoho CRM's Client script

Hi Community & Zoho Team,

Can any one help me with the code for the below scenario.

I need to get the records counts in Invoice module with applying two filters.
1) Mailing State = "Given State"
2) Invoice Date is Greater than "01-June-2024"


I expecting either COQL or Search functions with above to criteria applied.

Thanks in advance.