bug fixed with entity loading
added functions for counting number of pwps
pwp now properly counted, and displayed to user