Added new function to count free jobs only

Signed-off-by: Andreas Louca <andreas@louca.org>