...
which will create a patch set starting at the HEAD of the branch. You can use git log --oneline origin/master..master | wc -l
to help you get the number of commits.
REVISIT: How does wc -l work in other OSs such as Windows? There is this https://superuser.com/questions/959036/what-is-the-windows-equivalent-of-wc-l
Drop this the last phrase if not important.
If you have changes on a separate branch, then you can use the following to create the patches.
...