Counts inputs' length.