cost model calculation: number of attributes