I would not be so certain that this would reduce the number of ships, rather lower costs for shipping further as they try and find new cargo.
For all the breathless talk (above) about how the cost of renewable energy and batteries are plummeting, it is still not clear how cargo ships will be powered sans fossil fuels, or what that will cost. Time and the market will tell, I suppose.