This PostgreSQL extension provides some functions for querying hstore arrays.
- count_elements(elements hstore[], pattern text). returns the number of elements that match the given pattern.
- multi_count_elements(elements hstore[], patterns text[]). returns an array