Adding lastCommitNumber command

Might be usefull for generating buildinfo (in CI for example)