@Override
    public int getCount() {

        if (mAdapter != null) {
            /* Cnt of currently fetched ads, as long as it isn't more than no of max ads that can
            fit dataset. */
            int noOfAds = AdapterCalculator.getAdsCountToPublish(adFetcher.getFetchingAdsCount(), mAdapter.getCount());
            return mAdapter.getCount() > 0 ? mAdapter.getCount() + noOfAds : 0;
        } else {
            return 0;
        }
    }
@Override
    public int getCount() {

        if (mAdapter != null) {
            
            int noOfAds = AdapterCalculator.getAdsCountToPublish(adFetcher.getFetchingAdsCount(), mAdapter.getCount());
            return mAdapter.getCount() > 0 ? mAdapter.getCount() + noOfAds : 0;
        } else {
            return 0;
        }
    }
@ Override public int getCount ( ) { if ( mAdapter != null ) { /* Cnt of currently fetched ads, as long as it isn't more than no of max ads that can
            fit dataset. */ int noOfAds = AdapterCalculator . getAdsCountToPublish ( adFetcher . getFetchingAdsCount ( ) , mAdapter . getCount ( ) ) ; return mAdapter . getCount ( ) > 0 ? mAdapter . getCount ( ) + noOfAds : 0 ; } else { return 0 ; } }
<p>Gets the count of all data, including interspersed ads.</p>
<p/>
<p>If data size is 10 and an ad is to be showed after every 5 items starting at the index 0, this method
will return 12.</p>

@return the total number of items this adapter can show, including ads.
@see AdmobExpressAdapterWrapper#setNoOfDataBetweenAds(int)
@see AdmobExpressAdapterWrapper#getNoOfDataBetweenAds()
<p > Gets the count of all data including interspersed ads . < / p > <p / > <p > If data size is 10 and an ad is to be showed after every 5 items starting at the index 0 this method will return 12 . < / p >