I want to optimize the counting data processing speed of the main Query function, which is actually properly functioning, however is VERY slow in