added support to count number of components in faces context