Changed the way CountFree() behaves