Simplified Active Count

— Simplified the valCount variable in int calcChar(…) function.