Added support for countable in Imagick class