When using the count(const) algorithm in STL, an error operator not found which takes a left operand of type 'const _Ty' occurred.
The reason is that the custom doubly linked list class did not overload the left operator ==. Adding the overload operation fixes it.