try adding a step to remove 0 lines in count queries script