Count items in array by value

I have a SC API that returns an array of IDs, is there an easy way to use data binding client-side to count the number of items of a value (matching the id of a repeat item)

Something like:
{{arrayofIDs.where(someID).count}}

Community Page
Last updated: