I need to count all the files present in a directory and all its subdirectory with specific file extensions using shell script. Ex: I want a count of all the .py and .sh files in a directory and its subsequent subdirectories.
Sorry I missed to put in that I started with
find . -type f | sed -n 's/..*\.//p' | sort | uniq -c
but this is not printing anything