With the light switched on, turn the starter backwards and forwards, (As if you were removing it and putting it back) if the lamp comes on after 2 or 3 goes than should be just the starter. (Note if the lamp goes out when the starter is fixed in properly then again it is the starter)
If the above test does not work than it is probably the lamp. (They are not that expensive these days)
Bill