Skip to main content
1 of 2
Neil
  • 184.4k
  • 12
  • 76
  • 290

Charcoal, 16 bytes

W¬›×⌊θLθ¹⊞υ⊟θILυ 

Try it online! Link is to verbose version of code. Requires input sorted in descending order. Explanation:

W¬›×⌊θLθ¹ 

While a (last) crowd member's threshold is not too high...

⊞υ⊟θ 

... move the member from the crowd to the helper pool.

ILυ 

Print the final size of the helper pool.

Neil
  • 184.4k
  • 12
  • 76
  • 290