T04determ V3.1

better counting