In several websites there is a rule of thumb to determine the number of pi bonds in a non-cyclic molecule called the "6n+2 rule", in which n = the number of non-hydrogen atoms in the molecules, and V = total number of valence electrons, so that the number of electrons involved in pi bonds is...