/** * Get count of device locations. * @return int Count of all device locations. */ public function getCount() { return \App\DeviceLocation::all()->count(); }