Hi @Hareesh2728 ,
You can use the Liquid Template to get the total number of records of your respective entity.
First, download the FetchXml from the CRM of the view that you want to display on the portal. We considered a scenario where we want to show the total count of the contacts listed in the view on the portal.
Next, navigate to the Edit code for the selected web page where you want to show the count.

Paste and update the code given below to your HTML file for the selected web page.
{% fetchxml contacts%}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="contact">
<attribute name="fullname" />
<attribute name="telephone1" />
<attribute name="contactid" />
<order attribute="fullname" descending="false" />
</entity>
</fetch>
{% endfetchxml %} {% assign contactRecordCount = 0 %}
{% for contact in contacts.results.entities %}
{% assign contactRecordCount = contactRecordCount | plus: 1 %}
{% endfor %}
<div class="liquidContainer">
<span id="contactRecordcount">Total contacts : {{contactRecordCount}}</span>
</div>
You have to fix the Counter element at the top of your list,
Add the CSS code to the CSS file for the Selected Web Page,
#contactRecordcount{
position: relative;
top: -112vh;
left: 77vw;
}
Save and Sync the Website,

Thanks!
Inogic Professional Services Division
Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!
Drop an email at crm@inogic.com
Services: http://www.inogic.com/services/
Power Platform/Dynamics 365 CRM Tips and Tricks: http://www.inogic.com/blog/