St Johnstone's quest for a taste of Europa League football next season suffered a setback after they were held 2-2 by Ross County in a cracking contest in Perth.