Collect input and output sizes