@Keerthi97 , If I understand your requirement correctly, then please
follow below process to implement.1. Implement a component which can be
added to template so that Editors can create pages out of it.2. Let's
assume we have created a page which has component.3. Develop component
logic to read all components added to the page and simpley display that
number using sling model.