Added 'count' arg to append and prepend