casts repeat_count as int