Loewenheim numbers as a measure of logicality