COSMIC functional measurement of mobile applications and code size estimation