LSTM Hidden State & Layers

How to select the exact number of hidden states in LSTM?. or What should be kept in mind for that selection?

Similarly the layers for LSTM (1 or more)?

Experimentation.
You’re trading off the effort required for training vs. the quality of the results.