Error 25211 Failed to install performance counters

During SCOM 2012 R2 Agent installation, I got error:

Product: System Center Operations Managers 2012 Server -- Error 25211.Failed to install performance counters.. Error Code: -2147024809 (The parameter is incorrect.).

Potential solution (worked for me):

- patch your server https://support.microsoft.com/kb/2877211