An $S^1$-equivariant degree and the Fuller index