you could combine them with UNION ALL, but it would be
klugey
i can whip up an example for you if you really need it
if you are returning the detail rows to an application program, you can simply calculate the counts while printing them, and you wouldn't need the second query at all
however, if you want the totals to precede the details in your listing, as in this example:
contractor SC001 has the following 3 repairs:
b0032 416 2004-02-01
b0077 905 2004-02-03
b0032 416 2004-02-05
contractor SC002 has the following 2 repairs:
b0050 905 2004-02-02
b0066 905 2004-02-04
then you might want to give the union a try, otherwise you will have to do two sets of loops in your code, one to count the rows per contractor, and the second to print them