/** * @param $round * @return int */ function countFailedByRoundNumber($round) { return (int) \App\ResizesTinypng::where('round', $round)->where('error', 'LIKE', '%Y%')->count(); }