Static variable count and functions added.