Fixed mistake with counting rows.