Script to count commits and versions