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
Naganjaneya Lakshman TadepalliNaganjaneya Lakshman Tadepalli 

There is an account record and for that particular record it has 5 contacts, how can you got count of contacts associated to particular account without clicking account record?

SonamSonam (Salesforce Developers) 
What you can do is create a field which stores the count of the contacts associated to the account and manupilate the value of this field using a trigger on Contact.

When ever a new a contact is created or updated- check the account name, pull the count field and increase its value by  1. similarly when a contact is reassigned to another account(in case) you can update the count accordingly.

Add this field to the List view so that you do not need to open the account to check how many contacts a particular account has.