Steps to reproduce the issue:
Switch to organization
Purchase a given cycle of a course
Check
numberOf.courseof Shopping SpacePurchase a different cycle of the same course
Check
numberOf.courseof Shopping Space
Expected result: count at step 3 and 5 are the same
Actual result: count at step 5 increased

Note: here we are not taking into account if the shopping space already contains the course
