These are eggs belonging to a kind of sea shells called Drills. The eggs are often laid on the under-sides of rocks near the shore.