from checking this site's Spider-Man page, the original contract seems to be a total of 6 movies; 3 of them being Spider-Man movies and 3 being other Marvel movies.
not sure if Civil War is included in that; and not sure if Infinity War & Endgame are counted as 2 movies or as 1 movie.
the page did not mention any extension of the contract.