find number of files in folder python code example Example: count a number of file in a folder python import os len([item for item in os.listdir(folderPath)])