Created method for getting limited number of instances by type id