I have a project structure that looks like this:
1.foldername1
⌞p
⌞file1
⌞file2
2.foldername2
⌞p
⌞file1
⌞file2
3.foldername3
⌞p
⌞file1
⌞file2
How can I output a number total that counts every file inside a "p" folder? I don't need other details, like under which main folder it is. It should be something like:
Total files found in all "p" folders: X
Forgot to mention - I'm working on Overleaf, so I don't have access to anything else other than LaTeX (I think)