Question: how many electrons in one pi bond?
Answer: Just like acetylene with 2 pi bonds, the two carbon-nitrogen triple bonds in cyanogen also have two pi bonds, with each pi bond holding 2 electrons.