count protocols with doc