/**
  * 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]);
 }
 public function hashtagTotal()
 {
     $count = Hashtag::count();
     return $this->response->withItem($count, new CountTransformer());
 }