How to determine the no of states required for a dp in digit dp

how to determine the no of states required for a dp in digit dp…not able to get that?