added a check for recording the alive object count per partition