Neutral Be has 4 electrons but Be2+ means it has lost two electrons from possible four and became a positive ion.
∴ the number of electrons left will be equal to two.