One more question

(i hope i'm not annyoing)
How many steps can a player take not to travel?? I always thought it was two and that's how i usually play, but i've seen NBA players, say Kobe, take 3 steps and no call. He often drives to the basket taking 2 steps then one more and pulls up and shoots.