Omnifocus Reporting Question

Is there a way to generate number of tasks by folder (area of focus) assigned in omnifocus and what was completed in the prior week. I want to look at the balance of my workload historically.

It would probably have ti be done with an AppleScript or OmniJS script to get something like that