public function getRelativeYearCount($end = null, $locale = null, $query = null, $cacheKey = null)
    {
        if (is_null($end))
        {
            $end = Carbon::today();
        }

        return $this->getCountInBetween($end->copy()->subYear()->startOfDay(), $end->endOfDay(), $locale, $query, $cacheKey);
    }
public function getRelativeYearCount($end = null, $locale = null, $query = null, $cacheKey = null)
    {
        if (is_null($end))
        {
            $end = Carbon::today();
        }

        return $this->getCountInBetween($end->copy()->subYear()->startOfDay(), $end->endOfDay(), $locale, $query, $cacheKey);
    }
public function getRelativeYearCount ( $ end = null , $ locale = null , $ query = null , $ cacheKey = null ) { if ( is_null ( $ end ) ) { $ end = Carbon :: today ( ) ; } return $ this -> getCountInBetween ( $ end -> copy ( ) -> subYear ( ) -> startOfDay ( ) , $ end -> endOfDay ( ) , $ locale , $ query , $ cacheKey ) ; }
Get relative year visit count

@param Carbon|null $end
@param string|null $locale
@param mixed $query
@param string|null $cacheKey
@return int
Get relative year visit count