If you want to find all the executables , use this command:
find home/magie/d2 -type f -perm -u+rx | wc -l
OR
find home/magie/d2 -type f -perm +111 | wc -l
All answers here find files with a resolution of 755, but keep in mind that even 744 or 700 are also user executable files.
source share