In the movie "Groundhog Day", how long did Phil end up staying in Punxsutawney*?

Why do they think that?