check if pcnt functions exist before use it