I would make that 23, by including Connecticut which is on the Long Island Sound (salt water, almost part of the Atlantic Ocean).
You're right; I miscounted. Although the salt line of the Delaware River does sometimes go as far north as Philadelphia, and even aircraft carriers make it up to the Philadelphia Navy Yard for service, I opted to not count PA (which still qualifies as a Great Lakes State). For some reason when I did the math in my head what should have been 24-1 became 23-1.