Hi. It looks you are just scared of rabies. It is difficult to get rabies after so many years. IF you do not have difficulty in opening the jaw or do not have other symptoms , there is nothing to worry. Was the Dog a pet-dog who was given rabies vaccine
or a street dog? If the Dog was already vaccinated , do not worry.