Selecting the number of Records from Textbox
IIRC you could build this type of an Entity reference field with the help of Entity reference Views Display in Drupal 7 and the Entity Reference View Widget module.  

In Drupal 8 you probably need the wonderful Entity Browser that is usually used to manage media files, but no reason not to use it for any other entity references. So you still need the Entity reference field, you just use the Entity Browser as the widget for that field to control how the choices are presented. 

You'll probably want a filter above your results to list a certain number of results (100 for example) and then a "Select all" option to select all the results that have been filtered out (table display may come with that already).