add count and predicate to extension variable execution