Solve count(*) and into issue