Hi @DHAGZ ,
What do you want to count?
Do you want to count the number of the filtered items from a datasource?
If yes, as @Drrickryp suggested , you can use CountRows() function.
For example, I have a SharePoint list with a "Brand" column, I want to count the number of items with a particular brand(like "Apple"), so I can add a label control, then set its Text property to this(replace to your DataSource name):
CountRows(Filter(DataSourceName, Brand="Apple"))

You can also use this formula, both gets count number successfully:
CountIf(DataSourceName, Brand="Apple")

Note: If your DataSource is also a SharePoint list like my example, above formula may cause Delegation issue, you could consider to save your SPList into a Collection, then use the Collection as data source within your formula.
You can refer to Example section mentioned in this article to learn more about how to "count all records in a table, or count all records that satisfy a condition":
Count, CountA, CountIf, and CountRows functions - Power Apps | Microsoft Docs
Best regards,
Allen