If I am getting this error

`undefined method impressionist_count' for nil:NilClass` after trying to use this line inside \_user.html.erb

```
<%= @user.impressionist_count+@user.microposts.sum(&:impressionist_count) %>

```

where does it need to be defined? I already have this inside user.rb

```
def impressionist_count
    impressions.size
  end

```

I tried it in various helpers but to no avail