The total number of \( \text{sp}^2 \) hybridised carbon atoms in the major product \( P \) (a non-heterocyclic compound) of the following reaction is _______.