Modified the Agency Application History report to fix application counts