count>0 for copy data; count==0 for managing provided data