I made a simple website, where photos can be attached to an entry.
In the photo, you can see that I tried to display how many photos each entry has (blue color)

![enter image description here](https://i.stack.imgur.com/TmxQM.png) 

but I don't want Rails to display `0` if no image is attached. Here's my code:

```
<span id="anzahl"><%= treatment.paintings.count  %></span>

```