When an element shares electrons with other atoms of the same or different elements to acquire a stable electronic configuration, it is called covalency.
The number of electrons shared during the formation of a covalent compound is known as covalency.