elseif (!%count) { msg No count started }
should be
elseif (!%count) { msg $chan No count started }
and
if (%count) && ($nick !== %count3) { msg You didn't start the count }
if (%count) && ($nick !== %count3) { msg $chan You didn't start the count }
right?