Hi @Abhilash Sadhale ,
Thank you for posting query in Microsoft Q&A Platform.
You can read content of your file using Lookup activity and then use Set Variable activity to set the value of count in to your variable.
Below example implements same.
Lookup activity to read file:
Set Variable activity:
Hope this will help. Please let us know if any further queries.
---------
Please consider hitting Accept Answer
button. Accepted answers helps community as well.