Refocusing on releasing a query object from a new method DPcount()