Implement count descendents in single block