Put count into a code block