Patrick purchased 12 books. He needed 4 books for each of his projects at school. How many projects did he have?