Get correct row count