use wc -l instead of --count because older git on RHEL6 does not support --count :-(