2 answers
Hi Vijay ,Here I have one question ,Is there any relationship between Obj A & Obj B .Or just you need to to check over all count of object B record ?You have to write a trigger in Object A .Inside tthe trigger you can do a aggregate query to get the countof the record in Object B .Integer recCountOfObjA=[SELECT count() FROM B];However if you want the both object have relationship then logic will very if you want like each record needs to implement same logic .Let us know so that we can help !!Thanks Manoj