The technology giant has bought around 100 companies in six years, chief executive Tim Cook has revealed.