SELECT COUNT($col) FROM $table WHERE $col <= $this_row_col_value