Added option to constrain maximum playlist count