replace count with !empty