title: How to get RecyclerView item count?
body: <p>Hey i have <strong>recyclerview list</strong> like episode 1, episode 2, episode3, ... how to count total item and set as textview like current <code>episode = episode(total items)</code> </p>
  
  <p>here my adapter</p>
  
  <pre><code>public class EpisodeAdapter  extends  RecyclerView.Adapter&lt;EpisodeAdapter.EpisodeHolder&gt;{
      private List&lt;Episode&gt; episodeList;
      public EpisodeAdapter(List&lt;Episode&gt; episodeList) {
          this.episodeList = episodeList;
      }
      @Override
      public EpisodeHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_episode , null);
          EpisodeAdapter.EpisodeHolder mh = new EpisodeAdapter.EpisodeHolder(v);
          return mh;
      }
      @Override
      public void onBindViewHolder(EpisodeHolder holder, final int position) {
          if (episodeList.get(position).getImage()!=null){
              Picasso.with(SerieActivity.this).load(episodeList.get(position).getImage()).into(holder.image_view_item_episode_thumbail);
          }else{
              Picasso.with(SerieActivity.this).load(poster.getImage()).into(holder.image_view_item_episode_thumbail);
          }
          holder.text_view_item_episode_title.setText(episodeList.get(position).getTitle());
          if (episodeList.get(position).getDuration() !=  null){
              holder.text_view_item_episode_duration.setText(episodeList.get(position).getDuration());
          }
      }
  </code></pre>