Added code to dynamically calculate the number of results retrieved n
show the results