added function for counting HPC jobs