refactored variable names
removed increment and decrement of variables that weren't being used afterwards (numObjectsP & Countmax)