@Ricardo, this should get you started with minimal refinement (dependent on associated item types). You can removed any irrelevant item types from the criteria. For the results, add the "Document Number" field with a summary type of group and the "Item" field with a summary type of count. Please let me know if I have misunderstood your intent.