changed to use commit count for file