pass --count option to git for-each-ref