Added COUNT group function.

Count the items in a group with a configurable state
Description: https://groups.google.com/forum/#!topic/openhab/9g3mo9TNDHA