2 or 3 Days...that depends on if you want to get to the parks when they open, if you can go to the parks (not around Holidays) you can do everything in two days, but 3 days if you want to relax and just enjoy the parks.
As someone said earlier WOC shuts down most the rides at night on the Pier...