/**
  * Show the application welcome screen to the user.
  *
  * @param MapReduce $mapReduce
  * @return Response
  */
 public function index(MapReduce $mapReduce)
 {
     $total_tweets = Tweet::count();
     $total_hashtag = Hashtag::count();
     $agg_hashtags = $mapReduce->agg_hashtags();
     return view('home')->with(['total_tweets' => $total_tweets, 'total_hashtag' => $total_hashtag, 'agg_hashtags' => $agg_hashtags]);
 }
 /**
  * Show the application welcome screen to the user.
  *
  * @param MapReduce $mapReduce
  * @return Response
  */
 public function twitterTotal()
 {
     $count = Tweet::count();
     return $this->response->withItem($count, new CountTransformer());
 }