Fix where clause, add count in headers