Reworked numequalto function to use an object containing all counts instead of calculating a specific count on function call. Makes lookup less complex.