Alex has 36 marbles. He wants to divide them equally into bags. If each bag contains 9 marbles, how many bags can he fill?