display the result length of a query in user interface