List.CountValues
----------------

Counts values in list.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [List](component_List.md) | [8.1](newinversion81.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "List.CountValues"; List ) 

**MBS**( **"List.CountValues";** /\* Counts values in list. \*/  
**$List**) /\* The list to process.e.g. "Hello" ¶ "" ¶ "World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| List | The list to process. | "Hello" ¶ "" ¶ "World" |

### Result

Returns list or error.

### Description

Counts values in list.  
The result contains count, tab and the word and is not sorted.  
### Examples

List values:

 MBS ( "List.CountValues"; "Hello¶World¶Hello" )  
<small>  
Example result:   
1 World  
2 Hello</small>### See also

- [List.CountValuesMatching](ListCountValuesMatching.md)
- [QuickList.CountValuesMatching](QuickListCountValuesMatching.md)
- [Text.ListWords](TextListWords.md)

### Release notes

- **Version 10.4**
    - Added prefix/postfix operator for [List.IndexOfFirstValueMatching](https://www.mbsplugins.eu/ListIndexOfFirstValueMatching.shtml), [QuickList.IndexOfFirstValueMatching](https://www.mbsplugins.eu/QuickListIndexOfFirstValueMatching.shtml), [List.CountValuesMatching](https://www.mbsplugins.eu/ListCountValuesMatching.shtml) and [QuickList.CountValuesMatching](https://www.mbsplugins.eu/QuickListCountValuesMatching.shtml).
- **Version 10.3**
    - Added numeric mode for [List.CountValuesMatching](https://www.mbsplugins.eu/ListCountValuesMatching.shtml), [List.IndexOfFirstValueMatching](https://www.mbsplugins.eu/ListIndexOfFirstValueMatching.shtml), [QuickList.CountValuesMatching](https://www.mbsplugins.eu/QuickListCountValuesMatching.shtml) and [QuickList.IndexOfFirstValueMatching](https://www.mbsplugins.eu/QuickListIndexOfFirstValueMatching.shtml) functions.
- **Version 10.2**
    - Added [List.CountValuesMatching](https://www.mbsplugins.eu/ListCountValuesMatching.shtml), [List.IndexOfFirstValueMatching](https://www.mbsplugins.eu/ListIndexOfFirstValueMatching.shtml), [QuickList.CountValuesMatching](https://www.mbsplugins.eu/QuickListCountValuesMatching.shtml) and [QuickList.IndexOfFirstValueMatching](https://www.mbsplugins.eu/QuickListIndexOfFirstValueMatching.shtml) functions.
- **Version 8.1**
    - Added [Text.ListWords](http://www.mbsplugins.eu/TextListWords.shtml), [List.CountValues](http://www.mbsplugins.eu/ListCountValues.shtml) and [Text.CountWords](http://www.mbsplugins.eu/TextCountWords.shtml) functions.

### Example Databases

- [Text functions/Word Count functions](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/Word%20Count%20functions.shtml#1294FieldAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 8.1pr2](https://www.mbsplugins.de/archive/2018-02-07/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 5th February 2018 , last changed 5th February 2018

  
[List.ColumnMatchesSubString](ListColumnMatchesSubString.md) - [List.CountValuesMatching](ListCountValuesMatching.md)

[HTML Version](ListCountValues.shtml)