correct type is now passed to the count method; at that moment the featurecount is not yet upped so the type will be undefined for the first feature