lead count update automation

lead count update automation

I want that if a lead lands on my zoho crm leads module, if lead meats some specific criteria like ( leads ) campaign is equal to ( ABC ) & there is also a campaign name called ( ABC ) then update the lead count in the campaign automatically.

i use the bellow function but it is not working

campId = "3078208000001883001";
mp = Map();
mp.put("CAMPAIGNID",campId.toLong());
resp = zoho.crm.updateRelatedRecord("Campaigns",campId.toLong(),"Leads",leadId.toLong(),mp);
info resp;

i have also edited the arguments

Can any buddy help me regarding my issue