Initialize to something

std::vector<int> vector1(length, 0);

count method

count(values.begin(), values.end(), target)

find method

(std::find(v.begin(), v.end(),value) != v.end())