The memory size not only depends upon the number of Analog/Digital I/Os but also it depends on the complexicity of the logic you are going to build using the Is to generate the Os. The number of logicgates (i.e) 'AND', 'OR', 'NOT' , Memory, Timers etc. mainly decide the size of the memory.
R.Thiyagarajan.