function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lakshmi c 1lakshmi c 1 

write a trigger to count all the child records and display on parent object?

Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi Lakshmi,
Please refer below links which might help in above scenario
http://www.srinivas4sfdc.com/2016/03/number-of-child-record-count-on-parent.html
https://developer.salesforce.com/forums/?id=906F0000000BYzFIAW
https://automationchampion.com/tag/salesforce-trigger/

Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.

Thanks and Regards