int n = a.size() - std::count(a.begin(),a.end(),0);