bash count files in directory recursively matchingattern

Shell
find . -type f -name '*.log' -printf x | wc -cls -Uba1 | grep ^log | wc -l
Source

Also in Shell: