Use number of components to determine input type