You can get an unlimited number of eggs from two compatible Pokémon, but they only lay eggs one at a time. You would have to walk another 255 steps after getting notification of a PKMN laying an egg before you have another opportunity of picking up another egg.
Source: experience and this.