#!/bin/bash
pat=$1
matches=$(echo $pat*)
if [ "$matches" != "$pat*" ] ; then
	matches=$(echo $matches | wc -w)
else
	matches=0
fi
# Released under GNU General Public License 3 by celeste:crystalfaery 2011-02-07 00:33:18+00:00
# http://www.crystalfaeries.net/linux/bin/file_count


syntax highlighted by Code2HTML, v. 0.9.1