---
title: TECCountDirectTextEncodingConversions
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1571822-teccountdirecttextencodingconver
---

# TECCountDirectTextEncodingConversions

Counts and returns the number of direct conversions currentlyconfigured in the Text Encoding Converter.

## Declaration

```occ
OSStatus TECCountDirectTextEncodingConversions(ItemCount *numberOfEncodings);
```

## Parameters

- `numberOfEncodings`: On return, a pointer to the number of direct conversions. You should use this value to determine the array size for a parameter of the doc://com.apple.documentation/documentation/coreservices/1571834-tecgetdirecttextencodingconversi function.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion The number of direct conversions includes every instance ofa conversion. If different conversion plug-ins support the samedirect conversion, the direct conversion is counted more than once. Since the  TECGetDirectTextEncodingConversions function ignores duplicate direct conversions, TECCountDirectTextEncodingConversions mayreturn a number greater than the number of array elements neededfor the directConversions parameter.

## See Also

### Identifying Direct Encoding Conversions 

- [TECGetDirectTextEncodingConversions](coreservices/1571834-tecgetdirecttextencodingconversi.md)
