var appCounts = 0;
applicationsService.getApplicationCountByJob(job.id).then((appcount) => {
appCounts = appCounts + appcount;
});
company.applications = appCounts;
appCount has lost value in company.applications = appCounts;
Please let me know how to solve that issue.