We denote by ℓ(n) the minimal length of an addition chain leading to n and we define the counting function F(m,r):=#{n∈[2m,2m+1):ℓ(n)≤m+r}, where m is a positive integer and r≥0 is a real number. We show that for 0<c<log2 and for any ε>0, we have as m→∞, F(m,logmcm)<exp(cm+logmεmloglogm) and F(m,logmcm)>exp(cm−logm(1+ε)cmloglogm). This extends a result of Erdős which says that for almost all n, as n→∞, ℓ(n)=log2logn+(1+o(1))loglognlogn.