fix row count syntax