count function

Count the number of objects inside a workspace or multiprocessing