Counting local systems with principal unipotent local monodromy