How do I use straight C++ code to find out how many files in a specific directory?

Thanks,
Grace