Fixes bug in returning # items in the set