Test of count by sql fix 2