#!/bin/bash
#########################################################
# 							#
# This is BashStyle-NG 7.6				#
#							#
# Licensed under GNU GENERAL PUBLIC LICENSE v3        	#
#							#
# Copyright 2007 - 2009 Christopher Bratusek		#
#							#
#########################################################

procs=$(ps ax | wc -l | awk '{print $1}')

if [[ $procs -lt 10 ]]; then
	echo "000$procs"
elif [[ $procs -lt 100 ]]; then
	echo "00$procs"
elif [[ $procs -lt 1000 ]]; then
	echo "0$procs"
fi
