moved old detectBlink to count for template purposes