change row_count from int to long