The right answer to the question is five. All five films are mystery thrillers based on the novel, The Lodger by Marie Belloc Lowndes. They have been filmed by Alfred Hitchcock in 1927, by Maurice Elvey in 1932, by John Brahm in 1944, as Man in the Attic (1953) by Hugo Fregonese, and by David Ondaatje in 2009.

In all the film versions, the heart of the plot is the same. Each plot in each film follows two parallel story lines. One story is about a troubled detective who plays a cat-and-mouse game with an unknown killer, and the second tale is about an emotionally disturbed landlady and her relationship with an enigmatic "lodger".

When looking at all or several of the film versions, we need to keep in mind or recognize that although they are all based on the same novel, they are truly different films. And, if each seems to be inspired by some tale of Jack the Ripper, we can't expect them to tell exactly or almost precisely the same story. All we can do is to find some proper excitement or good stimulation from any or all of the films that we may watch.

More Info: en.wikipedia.org