How to get number how many items have different names?
<p>I have <code>List&lt;Custom&gt;</code> where Custom is </p>

<pre><code>class Custom {
    public int id;
    public String name;
}
</code></pre>

<p>How to get number how many items have different names ? Is there any easier way than put all in set and get set size ?</p>
