How to move between tabs in MacBook using keyboard only?

We might require to switch between tabs in any browser like safari or chrome or among tabs in the finder. To do that without using mouse following is to be done:

Press command key and then any key between 1 to 9 to move among the nine opened tabs.

It would not work for the tenth tab onward