How many parts of the Harry Potter series are there?

There are seven Harry Potter books, and eight Harry Potter movies. They split the last book into two parts for the movie versions.