Counting Threshold Graphs and Finding Inertia Sets