fixed condition to check count as int not str