[PATCH v2 31/60] buildman: Create a function to get number of built commits