This has been requested again and again by users
Thank you for the feedback.
It is now possible to have a dynamic expression in the Line Count property (since 9.1 Bali). Enjoy