count

Syntax:

    #include <map>
    size_type count(const key_type& key) const;

The method count() returns the number of occurrences of key in the map. count() should run in logarithmic time.