Update number of patches according to git