Count unique commits