A farmer has 50 oranges and wants to put them into bags with 10 oranges per bag. How many bags will he need?