Added new helper method to view to get number of jobs