integrate query counter in main UI (first tests)