Assets count conditional
You're close!

{% set numberOfPhotos = entry.photos|length %}

{% if numberOfPhotos &gt; 1 %}
  {# more than one #}
{% elseif numberOfPhotos == 1 %}
  {# exactly one #}
{% else %}
  {# no photos (always handle this case...) #}
{% endif %}