Big defferencies between GNU stat and BSD stat.
( Ah bothering )
$ stat -c '%a' example.sh
755
$ stat -f %OLp example.sh
755
FreeBSD find the chmod numerical value for a file or directory - nixCraft
Install GNU stat and aliase it is better.
brew install gnu-stat
alias stat=gstat