Please include the code.
Implement, according to the instructions in parts (a) and (b), the fnction count(), which takes item as argument and returns the number of times item occurs in a list.
template
int count (const list
a) implement the function by scanning the list and maintaining a count of the number of occurrences of item
b) Implement the function by making repeated calls to seqSearch() until the return iterator is aList.end().
(I have added the code for seqSearch() )