onContactAddTotalNumOfConAtAccLabel: When Contact is inserted or deleted then count the contact at Account Level
trigger onContactAddTotalNumOfConAtAccLabel on Contact (after delete, after insert) { List<Account> lstacc=new List<Account>(); set<ID> accid= new Set<Id>(); list<Account> lstAccountToUpdate = new list<Account>(); if(trigger.isInsert && trigger.IsAfter) { for(Contact con:trigger.new) { accid.add(con.AccountID); } lstacc= [Select ID, TotalContact__c from Account where ID In: accid]; if(lstacc.size()>0) { for(Account accObj:lstacc)...