Three days in Lisbon is the optimal amount of time. That will allow you to see whatever you want to see in the city centre while still having time to rest. If you just have two days in Lisbon, you will have less time for coffee shops, leisurely strolls, and activities.