FWIW, I've switched away from a composite column and instead use this saved search:
Code:
template:"program: annotation_count()#@#:n:>=1"
I'm unsure whether this is faster or slower - there's sometimes a slight but noticeable lag when executing the search.