#!/bin/bash
#########################################################
# 							#
# This is BashStyle-NG 7.4				#
#							#
# Licensed under GNU LESSER GENERAL PUBLIC LICENSE v3	#
#							#
# Copyright 2007 - 2008 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
