Counting GameObjects with Tag (Int)

How to I count the amount of GameObject with a tag, lets say “Apple”, and get a int/number out of it?

GameObject.FindGameObjectsWithTag(“Apple”).length