returns the number of occurrences of a key in a JSON object
Declared in <nlohmann/json.hpp>
<nlohmann/json.hpp>
size_type count(object_t::key_type const& key) const;
number of occurrences of the key (0 or 1 for a JSON object, 0 for all other types)