Rowcount check adjusts for tablename option