Find all files with the extension ".dat" in the current directory and its subdirectories up to 3 levels deep and count the number of lines in each file.
find . -maxdepth 3 -type f -iname '*.dat' | xargs wc -l