Fix #2 for new Ruby's syntax

This time everything fixed and working. I changed type to ctype (aka counter type).