Count files in specific folder?

Directly, I need a function that returns the number of files in a specific folder.

this project is blueprint only now.

is any body can help ?