Question: how many electrons does silicon gain or lose?
Answer: Since silicon has 4 valence electrons , therefore, it will share its valence electrons with other elements to acquire noble gas configuration of the nearest inert element . It will not lose or gain electrons since it forms covalent bond.