If you haven't been to London, that's fine if you want time to explore on your own and maybe see places that the average tourist doesn't see, but I would do this in addition to the main attractions. For this type of itinerary, for the answer of “how many days to visit London,” I would recommend 7 to 10 days.