adding linecount methods