St Mirren boss Jim Goodwin says his side can beat Rangers on Sunday and will take confidence from the champions' defeat to Dundee United and draw against Hearts.