Question: how to count how many files in a folder uipath?
Answer: Take Assign activity.
Assign a variable.
Take Variable's data type as String[]
Now write Directory. GetFiles(Folder_Path) in Value section of assign activity. It will get files from that specific folder path. ... 
Now take Write Line to take a count of files from specific folder.
Place this VariableName. Count.