count non zero elements in vector c++

my head sounds like a watermelon × Fale Conosco!