Increment Value of CURRENT_VERSION in web configuration

Hi -

Im trying to increase the Current_Version in our web config everytime I deploy using Octopus. Here is my script:

$webConfig = $OctopusParameters[‘Config_Path_Name’]
$doc = (Get-Content $webConfig) -as [Xml]

##Update Current version
$date = Get-Date -Format yyyyMMdd
$version = $doc.configuration.appSettings.add | where {$_.key -eq ‘CURRENT_VERSION’}
$version.value = $date + ‘_1’

##Save Changes
$doc.Save($webConfig)

Can anyone help on how can I increase the ‘_1’?