Jose owns 22 books, mary owns 17 books, chen owns 24 books and fred owns one more than the average number of books owned by the first three students. How many books does fred own?