Make sure count is integer