<?php
$string = (int) 'Muitas casas';
$string2 = (int) '10 casas aproximadamente';
$string3 = (int) 'Exatamente 10 casas';
PD9waHAKCiRzdHJpbmcgPSAoaW50KSAnTXVpdGFzIGNhc2FzJzsKCnZhcl9kdW1wKCAkc3RyaW5nICk7IC8vIGludCgwKQoKJHN0cmluZzIgPSAoaW50KSAnMTAgY2FzYXMgYXByb3hpbWFkYW1lbnRlJzsKCnZhcl9kdW1wKCAkc3RyaW5nMiApOyAvLyBpbnQoMTApCgokc3RyaW5nMyA9IChpbnQpICdFeGF0YW1lbnRlIDEwIGNhc2FzJzsKCnZhcl9kdW1wKCAkc3RyaW5nMyApOyAvLyBpbnQoMCk=