Automatically getting the number of input components in StreamTask