Display the number of posts of the current user from a specific term in a CPT

SCENARIO

I need to display the number of (published) posts of a specific CPT and a specific term of the current user. I want to display a label which shows the current user "You published XX Vehicles in Category "BMW"(term)"

TOKEN

[user:ID|count_user_posts_custom_term(CPT-SLUG,TAXONOMY-SLUG,TERM-SLUG)]

 This Token requires a custom function. Insert it on the file functions.php on your theme folder.