I need to count K2 items using Joomla API for usage in module.
I would like to filter items based on the values in extra_fields column.
For example: I need to count published K2 items with JSON string {"id":"12","value":"18"}.
I would like to use Joomla API like