Change behaviour for counting jobs size and builds size + add tests for it.