Fixed bugs in InputCollection

Removed `inputs` property
Added `length` property