4.0: Add array item count function

Counts items in arrays and gives a warning if not equal to Xiaomi default items