#includeIn this example, we have an array of integers named `arr`, and we want to count the number of occurrences of the value 1 in the array. We have used the `std::count` function provided by the Standard Template Library (STL) in C++ to achieve the desired result. The function takes three parameters, the first being the starting address of the array, the second being the ending address, and the third being the value to be searched. Package Library: The `std::count` function is a part of the `#include using namespace std; int main() { int arr[] = { 1, 2, 3, 1, 4, 1 }; int n = sizeof(arr) / sizeof(arr[0]); int count = std::count(arr, arr + n, 1); cout << "The count of 1 in the array is: " << count; return 0; }