It works and is supported. Here is the output from R&D setup:
On my R80.30 machine, that ultimately receives the routes, “show route bgp aspath” gives:
Prefix Nexthop AsPath
1.0.0.0/8 10.1.1.14 (4194368),917518,917518,917518,851981,IGP.(Id-6)
2.0.0.0/8 10.1.1.14 (4194368),917518,917518,917518,851981,IGP.(Id-6)
Configuration on machine, which sends the routes:
set as 14.14
set bgp external remote-as 1 on
set bgp external remote-as 1 export-routemap "eb" preference 1 on
set bgp external remote-as 1 peer 10.1.1.1 on
set bgp external remote-as 1 peer 10.1.1.1 aspath-prepend-count 5
set bgp external remote-as 13.13 on
set bgp external remote-as 13.13 import-routemap "ia" preference 1 on
set bgp external remote-as 13.13 peer 10.1.1.13 on
set bgp external remote-as 64.64 on
set bgp external remote-as 64.64 export-routemap "eb" preference 1 on
set bgp external remote-as 64.64 peer 10.1.1.64 on
set routemap eb id 1 on
set routemap eb id 1 allow
set routemap eb id 1 match protocol bgp
set routemap eb id 1 action aspath-prepend-count 3
set routemap ia id 1 on
set routemap ia id 1 allow
We tried both of the following ways to configure aspath-prepend-count, with peers that do and do not support 4-byte AS numbers, and the result was right in each:
set bgp external remote-as VALUE peer VALUE aspath-prepend-count VALUE
set routemap VALUE id VALUE action aspath-prepend-count VALUE