Chase plans to repaint some classroom bookcases. He has 1 4/7 ​ gallons of paint. All of the bookcases are the same size and each requires 1/3 ​ gallon of paint. How many bookcases will the custodian be able to repaint with that amount of paint?