public function getCountForDay(Carbon $day = null, $locale = null, $query = null, $cacheKey = null)
    {
        if (is_null($day))
        {
            $day = Carbon::now();
        }

        return $this->getCountInBetween($day->startOfDay(), $day->copy()->endOfDay(), $locale, $query, $cacheKey);
    }
public function getCountForDay(Carbon $day = null, $locale = null, $query = null, $cacheKey = null)
    {
        if (is_null($day))
        {
            $day = Carbon::now();
        }

        return $this->getCountInBetween($day->startOfDay(), $day->copy()->endOfDay(), $locale, $query, $cacheKey);
    }
public function getCountForDay ( Carbon $ day = null , $ locale = null , $ query = null , $ cacheKey = null ) { if ( is_null ( $ day ) ) { $ day = Carbon :: now ( ) ; } return $ this -> getCountInBetween ( $ day -> startOfDay ( ) , $ day -> copy ( ) -> endOfDay ( ) , $ locale , $ query , $ cacheKey ) ; }
Gets count for given day

@param Carbon|null $day
@param string|null $locale
@param mixed $query
@param string|null $cacheKey
@return int
Gets count for given day