Actually allMatches.length only return the number of matching "contact" instead of matching "number". 
it might be more convenient to store this data here , what do you think?