In this post, we have created one custom field Contact size on Account and we will update that contact size field based on insertion/deletion/updating of contact which is related to Account. In other term, we can say Roll-Up Summary through a trigger.