I\'m getting an error while counting the \'with\' data in laravel Eloquent Query. What output I need is to count the number of data related to promotiondetails