adding countExpressions, hoping for a brighter future
fixing off by one error in nested functions
first pass at if/else score calculation