@Paul_s Summary type will allow you to do this. Group any fields you want to see in the results and then use count on any line level field. I also included amount in this example as a sum example. Just remember that you'll need to adjust your criteria to allow only the lines you want (possibly excluding shipping or discount lines if applicable)