array size calculating