php auto-counts # pics