The answer to what number comes with the fourth sign is Number 4.
If you look at the signs sideways so that the numbers are below instead of on the right, you can recognize the values of the binary system, where the broken line represents zero and the whole line represents one.
The fact that Gottfried Wilhelm Leibniz supposedly derived the working binary system from these Signs makes it plausible he belongs in the story, too.