added nunique and value_counts functions to Index