made job count dynamic based on category id